/*
 * @Descripttion:
 * @version:
 * @Date: 2021-04-20 11:06:21
 * @LastEditors: huzhushan@126.com
 * @LastEditTime: 2021-04-21 09:36:55
 * @Author: huzhushan@126.com
 * @HomePage: https://huzhushan.gitee.io/vue3-element-admin
 * @Github: https://github.com/huzhushan/vue3-element-admin
 * @Donate: https://huzhushan.gitee.io/vue3-element-admin/donate/
 */
import request from '@/utils/request'

//    查询所有的DeptParentId=0数据
export const listPage = data => {
  return request({
    url: '/service-product/tTenant/listPage',
    method: 'get',
    params: data,
  })
}
//    查询所有的DeptParentId=0数据
export const tSaveOrUpdate = tenant => {
  return request({
    url: '/service-product/tTenant/saveOrUpdate',
    method: 'post',
    params: tenant,
  })
}
//    查询所有的DeptParentId=0数据
export const tDelete = id => {
  return request({
    url: '/service-product/tTenant/delete',
    method: 'post',
    params: { id: id },
  })
}
//    查询所有
export const listTenant = () => {
  return request({
    url: '/service-product/tTenant/list',
    method: 'get',
  })
}
